package com.jiezhuo.service.impl.jzg;

import com.jiezhuo.entity.jzg.JzgYd;
import com.jiezhuo.entity.jzg.JzgYdVO;
import com.jiezhuo.mapper.center.JzgYdMapper;
import com.jiezhuo.service.jzg.JzgYdService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiezhuo.utils.R;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author com.jiezhuo
 * @since 2024-06-07
 */
@Service
public class JzgYdServiceImpl extends ServiceImpl<JzgYdMapper, JzgYd> implements JzgYdService {

    @Override
    public int getMaxId() {
        return this.baseMapper.getMaxId();
    }

    @Override
    public R moveFacultyList(JzgYdVO jzgYdVO) {

        int count= this.baseMapper.moveFacultyListCount(jzgYdVO);
        return R.ok().data("list",this.baseMapper.moveFacultyList(jzgYdVO)).data("total",count);
    }

    @Override
    public R moveSchoolFacultyList(JzgYdVO jzgYdVO) {
        int count= this.baseMapper.moveSchoolFacultyListCount(jzgYdVO);
        return R.ok().data("list",this.baseMapper.moveSchoolFacultyList(jzgYdVO)).data("total",count);
    }
}
